#include "prec.h"

#include "taskhandler.h"

void wxiTaskProxy::Execute()
{
	if (m_func)
	{
		(m_handler->*m_func)();
	}
}

void wxiTaskHandler::AddTask(wxiTask* task)
{
	RTC_AddTask(task);
}

void wxiTaskHandler::AddTask(wxiTaskFunction func, bool islong )
{
	RTC_AddTask(new wxiTaskProxy(func, this, true, islong));
}